package cn.wp.ewallet.wallet.service;

import cn.wp.common.core.dto.WpResult;
import cn.wp.common.core.model.WpPage;
import cn.wp.ewallet.wallet.model.dto.ExchangeMoneyDto;
import cn.wp.ewallet.wallet.model.dto.ExchangeMoneyInfoDto;
import cn.wp.ewallet.wallet.model.dto.ExchangeMoneyReqDto;
import cn.wp.ewallet.wallet.model.dto.UsdtExchangeShqcDto;

import java.math.BigDecimal;

/**
 * 兑换申请单-业务逻辑层
 * Created by zhangyongli on 2020/01/09
 */
public interface ExchangeMoneyInfoService {

    /**
     * 查询单个兑换申请单
     * @param orderId
     * @return
     */
    ExchangeMoneyInfoDto getExchangeMoneyReqOrderById(String orderId);

    /**
     * 查询兑换交易记录
     * @return
     */
    WpPage<ExchangeMoneyInfoDto> getExchangeMoneyReqOrderByaddress(WpPage page);

    /**
     * 保存兑换申请单
     * @param exchangeMoneyReqDto
     */

    WpResult addExchangeMoneyInfo(ExchangeMoneyReqDto exchangeMoneyReqDto);

    /**
     * 处理兑换申请单
     * @param exchangeMoneyDtoo
     * @return
     */
    WpResult handleExchangeMoneyOrder(ExchangeMoneyDto exchangeMoneyDtoo);


    /**
     * 计算USDT兑换SHQC数量
     * @param usdtExchangeShqcDto
     * @return
     */
    BigDecimal calculateUsdtToShqc(UsdtExchangeShqcDto usdtExchangeShqcDto);
}